package com.zxt.utils;

import javax.sql.DataSource;

import static com.alibaba.druid.pool.DruidDataSourceFactory.createDataSource;

/**
 * Created by XiaoQiAng on 2015/11/6.
 */
public class DruidConnUtil {
    public static DataSource getDataSource() {
        DataSource dataSource = null;
        try {
            dataSource = createDataSource(MysqlProperties.getMysqlProperties());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return dataSource;
    }
}
